/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package TablaDeSimbolos;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.PrintWriter;

/**
 *
 * @author Administrador
 */
public class MEPaHandler {
    private FileWriter fw;
    private BufferedWriter bw;
    private PrintWriter salida;

    public MEPaHandler(String archivoSalida){
        try {
            fw = new FileWriter(archivoSalida);
            bw = new BufferedWriter(fw);
            salida = new PrintWriter(bw);


        }
        catch(java.io.IOException ioex) {
           System.out.println("se presento el error: "+ioex.toString());
        }
    }


    public void generarInstruccion(String inst){
        salida.println(inst);
        //System.out.println(inst);

    }

    public void cerrar(){
        salida.close();
    }


}
